#ifndef __Socket_hpp__
#define __Socket_hpp__

#include "Nocopy.hpp"

namespace xww
{

class Socket
: public Nocopy
{
public:
    Socket();
    explicit Socket(int fd);
    
    ~Socket();
    int fd() const { return _fd; }  
    void shutdownWrite();//关闭写端

private:
    int _fd;

};


}// end of namespace xww

#endif